package com.lzw.bean;

import com.lzw.common.bean.BaseBean;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/7/1 0001.
 */
public class Menu  extends BaseBean{
    private Integer status;
    @NotNull
    private String name;

    private String uri;

    private String note;
    @NotNull
    private Integer pId;
    private Integer order;

    private Integer ischecked;

    public List<Menu> childMenus = new ArrayList<Menu>();

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public List<Menu> getChildMenus() {
        return childMenus;
    }

    public void setChildMenus(List<Menu> childMenus) {
        this.childMenus = childMenus;
    }

    public Integer getIschecked() {
        return ischecked;
    }

    public void setIschecked(Integer ischecked) {
        this.ischecked = ischecked;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "status=" + status +
                ", name='" + name + '\'' +
                ", uri='" + uri + '\'' +
                ", note='" + note + '\'' +
                ", pId=" + pId +
                ", order=" + order +
                ", ischecked=" + ischecked +
                ", childMenus=" + childMenus +
                "} " + super.toString();
    }
}
